package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 销售需求单 数据库实体
 *
 * @author default
 * @date 2022-11-04
 */
@Data
@TableName("t_sale_demand_order")
public class SaleDemandOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String ORDER_STATUS ="order_status";

    public static final String SALE_CHANNEL ="sale_channel";

    public static final String SALE_SUB_CHANNEL ="sale_sub_channel";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String AUDIT_USER_CODE ="audit_user_code";

    public static final String AUDIT_USER_NAME ="audit_user_name";

    public static final String CURRENCY_CODE ="currency_code";

    public static final String CURRENCY_NAME ="currency_name";

    public static final String EXCHANGE_RATE ="exchange_rate";

    public static final String PO_ORDER_NO ="po_order_no";

    public static final String BEGIN_TIME ="begin_time";

    public static final String TAG ="tag";

    public static final String FLOW_ID ="flow_id";

    public static final String TAX_RATE ="tax_rate";


    /** 销售需求单号 */
    private String orderNo;

    /** 枚举 订单状态:1-草稿(s1)|2-需求确认(s2)|3-预供提报(s3)|4-已完成(s4) */
    private Integer orderStatus;

    /** 订单来源 */
    private String saleChannel;

    /** 订单来源下级 */
    private String saleSubChannel;

    /** 制单人账号 */
    private String createUserCode;

    /** 制单人名称 */
    private String createUserName;

    /** 审批人账号 */
    private String auditUserCode;

    /** 审批人名称 */
    private String auditUserName;

    /** 货币编码 */
    private String currencyCode;

    /** 货币名称 */
    private String currencyName;

    /** 汇率 */
    private BigDecimal exchangeRate;

    /** PO单号 */
    private String poOrderNo;

    /** 下单日期 */
    private Date beginTime;

    /** 标签 */
    private String tag;

    /** 审批流程ID */
    private String flowId;

    /** 税率 */
    private BigDecimal taxRate;

}
